public class bianlifour {
    public static void main(String[] args) {
        int [] num ={1,2,3,4,5,6,7,8,9,10};
        for (int i = 0; i < num.length; i++) {
            if (num[i] % 2 == 0) {
                num[i] /= 2;
            }else {
            num[i] *= 2;
            }
            System.out.println(num[i]);
        }
    }
}
